package com.cfswt.tasksystem.mapper;

import com.cfswt.tasksystem.pojo.entity.TaskAttachment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskAttachmentMapper {
    int insertAttachment(TaskAttachment taskAttachment);

    List<TaskAttachment> selectAttachmentByTaskId(Integer id);

    TaskAttachment selectAttachmentById(Integer id);

    int deleteAttachmentById(Integer id);

    int insertOrUpdateTaskAttachment(TaskAttachment taskAttachment);
}
